<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Step 2: Enabling Local Archiving for the Database">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="dameng-00011.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect Appliance 1.5.0-1.6.0 Help Center">
  <meta name="DC.Publisher" content="20241029">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="dameng-00013">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Step 2: Enabling Local Archiving for the Database</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="dameng-00013"></a><a name="dameng-00013"></a>
  <h1 class="topictitle1">Step 2: Enabling Local Archiving for the Database</h1>
  <div>
   <p>Before performing a backup job, local archiving must be enabled for the Dameng database. Otherwise, the backup fails.</p>
   <div class="section">
    <h4 class="sectiontitle">Precautions</h4>
    <ul>
     <li id="dameng-00013__dameng-00012_en-us_topic_0000002012732625_li18475121815115"><span id="dameng-00013__dameng-00012_en-us_topic_0000002012732625_ph158001916133217">Unless otherwise specified, the operations in this section use Dameng 8 as an example. The operations may vary according to the database version.</span></li>
     <li id="dameng-00013__dameng-00012_en-us_topic_0000002012732625_li135951626152410"><span id="dameng-00013__dameng-00012_en-us_topic_0000002012732625_ph1496613312326">If the Dameng database is deployed in a cluster, you need to log in to all hosts where the cluster instances reside and perform the following operations unless otherwise specified.</span></li>
    </ul>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li><span>Log in to the Dameng database host.</span></li>
     <li><span>Run the following command to query the path to the <strong>dm.ini</strong> configuration file:</span><p></p><pre class="screen">ps -ef | grep dm.ini</pre> <p></p></li>
     <li><span>Go to the directory where the configuration file is stored and run the following command to open and edit the configuration file:</span><p></p><pre class="screen">vim dm.ini</pre> <p></p></li>
     <li><span>In the <strong>#configuration file</strong> section of the configuration file, change the value of <strong>ARCH_INI</strong> to <strong>1</strong>.</span><p></p><pre class="screen">ARCH_INI = 1</pre> <p></p></li>
     <li><span>Run the following command to query the path to the <strong>dmarch.ini</strong> configuration file:</span><p></p><pre class="screen">find / -name dmarch.ini</pre> <p></p></li>
     <li><span>Go to the directory where the configuration file is stored and run the following command to open and edit the configuration file:</span><p></p><pre class="screen">vim dmarch.ini</pre> <p></p></li>
     <li><span>Change the following items in the configuration file:</span><p></p><pre class="screen">[ARCHIVE_LOCAL1]
ARCH_TYPE = LOCAL 
ARCH_DEST = <em>Archive file path</em>
ARCH_FILE_SIZE = <em>128</em> 
ARCH_SPACE_LIMIT = <em>0</em> </pre>
      <div class="note">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>Replace <em>Archive file path</em> with the actual path.</p>
       </div>
      </div> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="dameng-00011.html">Backing Up Dameng</a>
    </div>
   </div>
  </div>
 </body>
</html>